﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Objects.DataClasses;
using System.Configuration;

namespace SMS.DAL.Providers
{
    public abstract class ProviderBase<T, C>
            where C : BaseSearchCriteria
    {
        protected Fady_HanyDbEntities1 Context { set; get; }
        public ProviderBase()
        {
            Context = new Fady_HanyDbEntities1();
        }

        public abstract void Insert(T item);
        public abstract void Update(T updatedItem);
        public abstract void Delete(int id);
        public abstract T GetByID(int id);
        public abstract List<T> Search(C SearchCriteria);
    }
}